/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.accounting.service;

import java.util.List;

import com.javaeye.accounting.dto.MaterialsMonthBatchDetail;
import com.javaeye.accounting.dto.MaterialsMonthInventoryCheck;

public interface IMaterialsMonthInventoryCheckService {
	
	public List<MaterialsMonthInventoryCheck> getInventoryChecks(String year, int categoryId);
	
	public List<MaterialsMonthBatchDetail> queryCheckDetails(String monthNo, List<Integer> categorys);

	/**
	 * 保存新生成的盘点列表
	 * @param monthNo
	 * @param categorys
	 */
	public void saveAddCheckDetails(String monthNo, List<Integer> categorys);
	
	public void removeInventoryCheck(String checkNo);
	
	public MaterialsMonthInventoryCheck getInventoryCheckInfo(String checkNo);
	
	/**
	 * 保存盘点结果
	 * @param checkInfo
	 */
	public void saveInventoryCheckResult(MaterialsMonthInventoryCheck checkInfo);
	
	/**
	 * 根据实际盘点结果调整实际库存
	 * @param checkInfo
	 */
	public void adjustMaterialsInventory(MaterialsMonthInventoryCheck checkInfo);
}
